<?php
require_once __Dir__ . '/../simpletest/autorun.php';
require_once __Dir__ . '/../../Core/Commons/Logger.php';
require_once __Dir__ . '/../../Core/BonoHomeCore/BonoHomeCoreService.php';

class TestOfDeleteOperation extends UnitTestCase 
{
	/*
		Check a correct add answer
	*/
    function testCorrectDeleteOperation() 
	{
		$accountName = "test account"; 
		$startDate = date("d-m-y", strtotime("01-01-2014"));  
		$endDate = date("d-m-y", strtotime("31-12-2014")); 
		
		//Get documents with force to refresh
		$service = new BonoHomeCoreService();
		$result = $service->getOperations($accountName, $startDate, $endDate);
		$id = $result->response[0]->Id;
		
		$service = new BonoHomeCoreService();
		$account = $service->deleteOperation($id);
		$this->assertTrue($account->isFailed == false);
    }
	
	
	/*
		Check an invalid add answer
	*/
    function testInvalidDeleteOperation() 
	{
    }
}
?>